package com.ruibang.glass.produce.domain.resp;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author 宋锦康
 */
@Data
public class MonitorPointBase {

    @ApiModelProperty(value = "监测点Id")
    private String monitorId;

    @ApiModelProperty(value = "监测名称")
    private String monitorName;

    @ApiModelProperty(value = "监测点代码")
    private String monitorCode;

    @ApiModelProperty(value = "设备id")
    private String deviceId;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "采集时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime collectTime;

    @ApiModelProperty(value = "算术符号( + - * / ||)")
    private String calc;

    @ApiModelProperty(value = "算术系数")
    private Double modulus;

    @ApiModelProperty(value = "值")
    private Double value;

}
